package main;

import gui.MainWindow;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import resources.GlobalSettings;

public class SokobanApp {

	private static void initializeLookAndFeel() {
		try {
			System.setProperty("java.awt.Window.locationByPlatform", "true");
			System.setProperty("apple.laf.useScreenMenuBar", "true");
			System.setProperty(
					"com.apple.mrj.application.apple.menu.about.name",
					GlobalSettings.appName);
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception ex) {
			System.out
					.println("An exception occurred while setting the system look and feel.");
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		initializeLookAndFeel();

		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				new MainWindow();
			}
		});
	}
}
